<%@ include file="/WEB-INF/jsp/include.jsp"%>
<div id="emr_<c:out value="${eatingMenuRecipe.id}"/>">
    <c:set var="recipe" value="${eatingMenuRecipe.recipe}"/>
    <span class="eating_menu_recipes_count">
        <span class="hidden_id"><c:out value="${eatingMenuRecipe.id}"/></span>
        <table border="1">
            <tr>
                <td width="400">
                    <span class="name"><c:out value="${recipe.name}"/></span>,
                    <c:out value="${fn:length(recipe.components)}"/> components
                </td>
                <td width="150">
                    <span class="count"><c:out value="${eatingMenuRecipe.count}"/></span>
                    &nbsp;
                    <span class="dialog_link change_count">change count</span>
                </td>
                <td width="300">
                    <a href="<c:url value="/eatingmenu-recipe-get-view.html"><c:param name="usersTableId" value="${usersTableId}"/><c:param name="dayMenuId" value="${dayMenuId}"/><c:param name="eatingMenuId" value="${eatingMenuId}"/><c:param name="id" value="${eatingMenuRecipe.id}"/></c:url>">View</a>
                    &nbsp;&nbsp;&nbsp;
                    <c:if test="${eatingMenuRecipe.userRecipeOwner}">
                        <a href="<c:url value="/eatingmenu-recipe-get-edit.html"><c:param name="usersTableId" value="${usersTableId}"/><c:param name="dayMenuId" value="${dayMenuId}"/><c:param name="eatingMenuId" value="${eatingMenuId}"/><c:param name="id" value="${eatingMenuRecipe.id}"/></c:url>">Edit</a>
                    </c:if>
                    <br/>
                    <span class="dialog_link remove_recipe">remove recipe from eating menu</span>
                    <%--<a href="<c:url value="/eatingmenu-recipes-remove.html"><c:param name="usersTableId" value="${usersTableId}"/><c:param name="dayMenuId" value="${dayMenuId}"/><c:param name="eatingMenuId" value="${eatingMenuId}"/><c:param name="id" value="${eatingMenuRecipe.id}"/></c:url>">Remove</a>--%>
                </td>
            </tr>
        </table>
    </span>
</div>